package cn.yusei.teamTribe.constant;

import java.lang.reflect.Field;

public class SchoolCode {
	
	/**
	 * 长沙理工大学
	 */
	public static final int CSUST = 1;
	
	private static Field[] fields = SchoolCode.class.getFields();
	
	public static boolean isSchoolCode(int schoolCode)
	{
		try
		{
			for(Field field : fields)
			{
				if(field.getInt(SchoolCode.class) == schoolCode)
					return true;
			}
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		return false;
	}
}
